#define COM485En PTS_PTS0  
#define COM485SendEn  COM485En=1
#define COM485RevEn COM485En =0
#define MAX_SCI0_BUFFER_SZIE 128
#define MAX_SCI1_BUFFER_SZIE 128
#define MAX_SCI2_BUFFER_SZIE 128
#define MAX_SCI3_BUFFER_SZIE 128

extern volatile int shared_counter;
extern volatile unsigned char putstring[8];
extern volatile struct can_msg msg_send, msg_get;
extern volatile struct tBuffer Buffer0;
extern volatile unsigned short int  SCI3_TX_BUFFER_HEAD;
extern volatile unsigned short int  SCI3_TX_BUFFER_TAIL;
extern volatile unsigned short int  SCI3_RX_BUFFER_HEAD;
extern volatile unsigned short int  SCI3_RX_BUFFER_TAIL;
extern volatile unsigned char SCI3_TX_BUFFER[MAX_SCI3_BUFFER_SZIE];
extern volatile unsigned char SCI3_RX_BUFFER[MAX_SCI3_BUFFER_SZIE];
struct tBuffer
{					
  unsigned char size;
  unsigned char character[4];  
} ;




